package com.dense.kuiniu.bookborrow.business.entity;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * @author Administrator
 * @date 2020/8/7
 */
public class Book implements Parcelable {


    /**
     * coverPhotoUrl : 封面url
     * pageNumber : 50
     * author : 余华
     * isbn : 979852644
     * count : 4
     * bookName : 活着
     * fkPressName : 新华出版社
     * layout : 平装
     * openBook : 32开
     * publishingTime : 2000年04月
     * location : 书籍位置
     * stateCode : 10
     * id : 12
     * state : 在架
     * introduction : 图书简介
     * bookCode：馆内码
     * bop :0图书 1期刊
     */
    private String coverPhotoUrl;
    private String pageNumber;
    private String author;
    private String isbn;
    private int count;
    private String bookName;
    private String bookType;
    private String fkPressName;
    private String layout;
    private String openBook;
    private String publishingTime;
    private String location;
    private String stateCode;
    private String id;
    private String state;
    private String introduction;
    private String bookCode;
    private String bop;

    public static final Creator<Book> CREATOR = new Creator<Book>() {
        @Override
        public Book createFromParcel(Parcel in) {
            return new Book(in);
        }

        @Override
        public Book[] newArray(int size) {
            return new Book[size];
        }
    };

    public String getBop() {
        return bop;
    }

    public void setBop(String bop) {
        this.bop = bop;
    }

    public String getBookType() {
        return bookType;
    }

    public void setBookType(String bookType) {
        this.bookType = bookType;
    }

    public String getCoverPhotoUrl() {
        return coverPhotoUrl;
    }

    public void setCoverPhotoUrl(String coverPhotoUrl) {
        this.coverPhotoUrl = coverPhotoUrl;
    }

    public String getPageNumber() {
        return pageNumber;
    }

    public void setPageNumber(String pageNumber) {
        this.pageNumber = pageNumber;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getIsbn() {
        return isbn;
    }

    public void setIsbn(String isbn) {
        this.isbn = isbn;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public String getBookName() {
        return bookName;
    }

    public void setBookName(String bookName) {
        this.bookName = bookName;
    }

    public String getFkPressName() {
        return fkPressName;
    }

    public void setFkPressName(String fkPressName) {
        this.fkPressName = fkPressName;
    }

    public String getLayout() {
        return layout;
    }

    public void setLayout(String layout) {
        this.layout = layout;
    }

    public String getOpenBook() {
        return openBook;
    }

    public void setOpenBook(String openBook) {
        this.openBook = openBook;
    }

    public String getPublishingTime() {
        return publishingTime;
    }

    public void setPublishingTime(String publishingTime) {
        this.publishingTime = publishingTime;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public String getStateCode() {
        return stateCode;
    }

    public void setStateCode(String stateCode) {
        this.stateCode = stateCode;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getIntroduction() {
        return introduction;
    }

    public void setIntroduction(String introduction) {
        this.introduction = introduction;
    }

    public String getBookCode() {
        return bookCode;
    }

    public void setBookCode(String bookCode) {
        this.bookCode = bookCode;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.coverPhotoUrl);
        dest.writeString(this.pageNumber);
        dest.writeString(this.author);
        dest.writeString(this.isbn);
        dest.writeInt(this.count);
        dest.writeString(this.bookName);
        dest.writeString(this.fkPressName);
        dest.writeString(this.layout);
        dest.writeString(this.openBook);
        dest.writeString(this.publishingTime);
        dest.writeString(this.location);
        dest.writeString(this.stateCode);
        dest.writeString(this.id);
        dest.writeString(this.state);
        dest.writeString(this.introduction);
        dest.writeString(this.bookCode);
        dest.writeString(this.bookType);
        dest.writeString(this.bop);
    }

    public Book() {
    }

    protected Book(Parcel in) {
        this.coverPhotoUrl = in.readString();
        this.pageNumber = in.readString();
        this.author = in.readString();
        this.isbn = in.readString();
        this.count = in.readInt();
        this.bookName = in.readString();
        this.fkPressName = in.readString();
        this.layout = in.readString();
        this.openBook = in.readString();
        this.publishingTime = in.readString();
        this.location = in.readString();
        this.stateCode = in.readString();
        this.id = in.readString();
        this.state = in.readString();
        this.introduction = in.readString();
        this.bookCode = in.readString();
        this.bookType = in.readString();
        this.bop = in.readString();
    }

}